<?php 
require_once ($_SERVER['DOCUMENT_ROOT'].'/../application/models/users/users.php');

if(isset($_GET['action']))
	$action=$_GET['action'];
else
	$action='select';

switch($action)
{
	case 'update':		
	case 'insert':
		include ($_SERVER['DOCUMENT_ROOT']."/../application/views/scripts/users/insert.php");
	break;
	case 'delete':
		echo "Estoy en delete";
	break;
	case 'select':
	default:
		$arrayUsers=getUsers();
		include_once ($_SERVER['DOCUMENT_ROOT'].'/../application/views/scripts/users/select.php');
		
	break;
}

